﻿using System.Windows;
using TestLib;
using WJP;

namespace WJPClient
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            textResult.Text = "DCF工厂模式返回结果：" + DomainControllerFactory.Create<MainController>().TestController();

            var controller = App.IocManager.Resolve<MainController>();
            var result = controller.TestController();

            textResult.Text += "\r\nIOC依赖注入模式返回结果：" + result;
        }
    }
}
